package com.example.smartlearning.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.smartlearning.entity.AnswerEntity;
import com.example.smartlearning.entity.BookContentViewEntity;
import com.example.smartlearning.entity.BookEntity;

import java.util.List;

public interface BookDao extends BaseMapper<BookEntity> {
    //根据书籍id查询书籍详情
    BookEntity selectBookById(int bookId);

    //根据id获取书籍对应的章节并且排序
    List<BookContentViewEntity> selectAllByContent(int bookId);


}
